package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.FollowEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author v2tila on 23:54 2019/3/26
 */

public interface FollowJPA extends JpaRepository<FollowEntity, Integer>, JpaSpecificationExecutor<FollowEntity> {
    List<FollowEntity> findByUniqueId(String uniqueId);
    boolean existsByUniqueIdAndZpxxId(String uniqueId,Integer zpxxId);
    FollowEntity findByUniqueIdAndZpxxId(String uniqueId,Integer zpxxId);

}
